{extends file="./main.tpl"}
{block name=head}
<script type="text/javascript">
  $(document).ready(function() {
    $('#party').focus();
  });
function myFunction()
{
  if(confirm("You Want To Remove This Record")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
{/block}
{block name=body}
<form name="form1" id="form1" action="{$smarty.server.PHP_SELF}" method="post">
<table align="center" border="0" cellpadding="2" cellspacing="2" >
<tr>
  <td align="right" class="table1"><font size="3"><b>Party :</b></font></td>
  <td class="table1">                                                               
    <select name="partyId" id="partyId" onchange="this.form.submit();" >
      <option value="" >All</option>
      {html_options values=$partyArray.partyId output=$partyArray.partyName selected=$partyId}
    </select>
  </td>
</tr>
</table>
</form>
{if $billMasterArr != 0}
<table align="center" border="0" cellpadding="2" cellspacing="2" >
<tr>
	<td align="center" class="table1">&bull;</td>
	<td align="center" class="table1">Memo No</td>
	<td align="center" class="table1">Memo Date</td>
	<!--<td align="center" class="table1">Total</td>
	<td align="center" class="table1">Service Tax</td>
	<td align="center" class="table1">RoundOff</td>
	<td align="center" class="table1">Net Total</td>-->
	<td align="center" class="table1">Notes</td>
</tr>
{section name=sec loop=$billMasterArr}
<tr>
  <!--<td align="center" class="table2">
		<a href="billListEdit.php?detail=1&billMasterId={$billMasterArr[sec].billMasterId}" target="_blank"><img src="./images/b_edit.png"></a></td>-->
	<td align="center" class="table2">
		<a href="billList.php?detail=1&billMasterId={$billMasterArr[sec].billMasterId}" target="_blank">Details</a></td>
	<td align="center" class="table2">{$billMasterArr[sec].billNo}</td>
	<td align="center" class="table2">{$billMasterArr[sec].billDate}</td>
	<!--<td align="right" class="table2">{$billMasterArr[sec].total}</td>
	<td align="right" class="table2">{$billMasterArr[sec].serviceTax}</td>
	<td align="right" class="table2">{$billMasterArr[sec].roundOff}</td>
	<td align="right" class="table2">{$billMasterArr[sec].netTotal}</td>-->
	<td align="left" class="table2">{$billMasterArr[sec].notes}</td>
</tr>
{/section}
</table>
{/if}
{/block}